import java.net.ServerSocket;
import java.net.Socket;


public class SocketServer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		try {
			ServerSocket ss = new ServerSocket(5432);
			Socket s;
			if ((s=ss.accept())!=null) {
				s.getOutputStream().write("Oi e tchau...\n".getBytes());
				s.close();
			}
			
		}catch(Exception e) {
			e.printStackTrace();
		}
		
		
	}

}
